class Restaurant:
    def __init__(self,restaurant_name,cuisine_type):
        self.restaurant_name=restaurant_name
        self.cuisine_type=cuisine_type

    def describe_restaurant(self):
        """餐厅名称和菜肴类型"""
        print("The restaurant name is " + self.restaurant_name.title() + ".")
        print("The cuisine type is " + self.cuisine_type.title() + ".")

    def  open_restaurant(self):
        print("参观正在营业！")

"""创建一个名为 restaurant 的实例"""
my_restaurant = Restaurant('kaifengcai','fast food')
"""分别打印其两个属性"""
print(my_restaurant.restaurant_name.title())
print(my_restaurant.cuisine_type.title())
"""调用前述两个方法"""
my_restaurant.describe_restaurant()
my_restaurant.open_restaurant()

class Vehicle:
    def __init__(self,vehicle_name):
        self.vehicle_name=vehicle_name
    def start(self):
        print(self.vehicle_name+' starts.')
vehicle=Vehicle('Vehicle')
vehicle.start()

class Car(Vehicle):
    def start(self):
        print(self.vehicle_name+' start!')
car=Car('Car')
car.start()

class Bike(Vehicle):
    def start(self):
        print(self.vehicle_name+' start!')
bike=Bike('Bike')
bike.start()

